/**
 * Jaxson ajax
 *
 * Copyright Remedy Interactive, licensed under Apache version 2 license:
 *
 *  http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * This notice must remain in all java source files.
 */
package org.jaxson.examples.charts;

import java.io.Serializable;

import org.jaxson.struts.charts.annotations.Charts;
import org.jaxson.struts.charts.annotations.DatasetMapping;
import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.data.general.DefaultPieDataset;

/**
 * @author Joe Maisel
 *
 */
public class ChartTestModel implements Serializable
{
	private int num;
	private int otherNum;
	
	/**
	 * @return the num
	 */
	@Charts
	(
		datasets=
		{
			@DatasetMapping(type=DefaultPieDataset.class),
			@DatasetMapping(type=DefaultCategoryDataset.class, rowKey="row0", columnKey="column0")
		}
	)
	public int getNum()
	{
		return num;
	}
	/**
	 * @param num the num to set
	 */
	public void setNum( int num )
	{
		this.num = num;
	}
	/**
	 * @return the otherNum
	 */
	@Charts
	(
		datasets=
		{
			@DatasetMapping(type=DefaultPieDataset.class),
			@DatasetMapping(type=DefaultCategoryDataset.class, rowKey="row1", columnKey="column0")
		}
	)
	public int getOtherNum()
	{
		return otherNum;
	}
	/**
	 * @param otherNum the otherNum to set
	 */
	public void setOtherNum( int otherNum )
	{
		this.otherNum = otherNum;
	}
	private static final long serialVersionUID = 7525479700392218751L;
}
